<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'projectcomm.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript">
	function forward() {
		window.location = 'a';
	}
</script>
</head>

<body>

	<c:forEach var="e" items="${set }">
		<br />
    产品编号:<input value="${e.DId }">
		<br />
    产品名称:<input value="${e.DName }">
		<br />
    产品型号:<input value="${e.DType }" />
		<br />
    研发开始时间:<input value="${e.DStarttime }" />
		<br />
    研发上市时间:<input value="${e.DOnline }" />
		<br />
    商标状况:<input value="${e.DStatus }" />
		<br />
    累计投入:<input value="${e.DTotalmoney }" />
		<br />
   单位成本:<input value="${e.DUnitcost }" />
		<br />
    产品介绍:<input value="${e.DDesc }" />
 <br/>
		<c:if test="${empty e.DUrl}">
   <a href="javascript:wenjian(${e.DId })">没有文件上传个文件吧</a>
		</c:if>
		<c:if test="${not empty e.DUrl }">
		<!--这个显示图片  -->
<%--   文件: <img src="${e.DUrl }" width="200" height="200"> --%>
        <!--这个现实文本文档  -->
<iframe name="show" id="show" width="500" height="500" src="${e.DUrl }"></iframe>

		</c:if>
		<br />
	</c:forEach>
	<a href="javascript:forward()">返回</a>
</body>

<script type="text/javascript">
function wenjian(DId){
window.location.href="projectco?DId="+DId;
}

</script>
</html>
